/*
 * author: Andriamananony, Meß, Falk
 */

package util;

public class TimeLog {
	private static long nLastInfoEntry = System.currentTimeMillis();
	private static long nLastErrorEntry = System.currentTimeMillis();
	
	public static void logInfo(String s){
		System.out.println((System.currentTimeMillis()-nLastInfoEntry)+" "+s);
		nLastInfoEntry = System.currentTimeMillis();
	}
	
	public static void logError(String s){
		System.err.println((System.currentTimeMillis()-nLastErrorEntry)+" "+s);
		nLastErrorEntry = System.currentTimeMillis();
	}
}
